<?php
/* See
      http://themeshaper.com/blog/functions-php-wordpress-child-themes/
   and 
      http://icfun.blogspot.com/2008/07/php-how-to-check-useragent.html
   for more */

function childtheme_iefix() { 

    if(isset($_SERVER['HTTP_USER_AGENT'])){
        $agent = $_SERVER['HTTP_USER_AGENT'];
        if(strstr($agent,'MSIE')){
            ?>
            <link rel="stylesheet" type="text/css" href="<?php echo bloginfo('stylesheet_directory') ?>/ie.css" />
            <?php
        }
    } 
 
}

function childtheme_specialcss() { 
	/* This is to provide over-ride CSS which is date/time specific, note, will over-ride MSIE sheet */
	?><link rel="stylesheet" type="text/css" href="<?php echo bloginfo('stylesheet_directory') ?>/specialdates.css" />
<?php }
 


function childtheme_variantcss() { 
	/* This is to reference a variant style sheet, should one be provided */
	$variantfile = get_bloginfo('stylesheet_directory') . '/variant.css';
	if (file_exists($variantfile)) {
		?><link rel="stylesheet" type="text/css" href="<?php echo $variantfile; ?>" /><?php
		}
	else {
		?><!-- Create <?php echo $variantfile; ?> for your own customisations  --> <?php
		}
}



add_action('wp_head', 'childtheme_iefix');
add_action('wp_head', 'childtheme_specialcss');
add_action('wp_head', 'childtheme_variantcss');

?>